package com.lineage.server.serverpackets;

import com.lineage.server.model.Instance.L1PcInstance;

public class S_ChatClanUnion extends ServerBasePacket {
  private byte[] _byte;
  
  public S_ChatClanUnion(L1PcInstance pc, String chat) {
    this._byte = null;
    buildPacket(pc, chat);
  }
  
  private void buildPacket(L1PcInstance pc, String chat) {
    writeC(243);
    writeC(4);
    writeS("{{" + pc.getName() + "}} " + chat);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
